<?php
namespace Admin\Controller;
use Think\Controller;
class IndexController extends CommonController {

	public function _initialize(){
		parent::_initialize();
	}
	
	public function index(){
		
	       	$this->display("index");
	}

	//管理员注销登录
	public function adminLoginout(){
		session('ADMINID',null);
		session('ADMINNAME',null);
		session('ADMINIMG',null);
		session('ADMINEMAIL',null);
		session('ADMINSIGNATURE',null);
		session('[destroy]');   //thinkphp中清除session方法
		$this->redirect("/Admin/Login/index",'',1,'账号退出成功！欢迎你再次回归！');	
	}
	
}